package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;


/**
 * 个人订单
 * 数据库通用操作实体类（普通增删改查）
 * @author 
 * @email 
 * @date 2025-03-28 20:35:43
 */
@TableName("personalorder")
public class PersonalorderEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public PersonalorderEntity() {
		
	}
	
	public PersonalorderEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	/**
	 * 主键id
	 */
    @TableId(type = IdType.AUTO)
	private Long id;
	/**
	 * 订单编号
	 */
					
	private String ordernumber;
	
	/**
	 * 酒店名称
	 */
					
	private String hotelname;
	
	/**
	 * 酒店分类
	 */
					
	private String hotelclassification;
	
	/**
	 * 酒店图片
	 */
					
	private String hotelimage;
	
	/**
	 * 酒店地址
	 */
					
	private String hoteladdress;
	
	/**
	 * 房间类型
	 */
					
	private String roomtype;
	
	/**
	 * 房间价格
	 */
					
	private Double roomprice;
	
	/**
	 * 预约天数
	 */
					
	private Integer reservationdays;
	
	/**
	 * 总费用
	 */
					
	private Double totalcost;
	
	/**
	 * 预约时间
	 */
				
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
	@DateTimeFormat 		
	private Date reservationtime;
	
	/**
	 * 用户账号
	 */
					
	private String useraccount;
	
	/**
	 * 用户姓名
	 */
					
	private String username;
	
	/**
	 * 联系电话
	 */
					
	private String contactphone;
	
	/**
	 * 预约备注
	 */
					
	private String reservationremarks;
	
	/**
	 * 是否支付
	 */
					
	private String ispay;
	
	
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;

	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 设置：订单编号
	 */
	public void setOrdernumber(String ordernumber) {
		this.ordernumber = ordernumber;
	}
	/**
	 * 获取：订单编号
	 */
	public String getOrdernumber() {
		return ordernumber;
	}
	/**
	 * 设置：酒店名称
	 */
	public void setHotelname(String hotelname) {
		this.hotelname = hotelname;
	}
	/**
	 * 获取：酒店名称
	 */
	public String getHotelname() {
		return hotelname;
	}
	/**
	 * 设置：酒店分类
	 */
	public void setHotelclassification(String hotelclassification) {
		this.hotelclassification = hotelclassification;
	}
	/**
	 * 获取：酒店分类
	 */
	public String getHotelclassification() {
		return hotelclassification;
	}
	/**
	 * 设置：酒店图片
	 */
	public void setHotelimage(String hotelimage) {
		this.hotelimage = hotelimage;
	}
	/**
	 * 获取：酒店图片
	 */
	public String getHotelimage() {
		return hotelimage;
	}
	/**
	 * 设置：酒店地址
	 */
	public void setHoteladdress(String hoteladdress) {
		this.hoteladdress = hoteladdress;
	}
	/**
	 * 获取：酒店地址
	 */
	public String getHoteladdress() {
		return hoteladdress;
	}
	/**
	 * 设置：房间类型
	 */
	public void setRoomtype(String roomtype) {
		this.roomtype = roomtype;
	}
	/**
	 * 获取：房间类型
	 */
	public String getRoomtype() {
		return roomtype;
	}
	/**
	 * 设置：房间价格
	 */
	public void setRoomprice(Double roomprice) {
		this.roomprice = roomprice;
	}
	/**
	 * 获取：房间价格
	 */
	public Double getRoomprice() {
		return roomprice;
	}
	/**
	 * 设置：预约天数
	 */
	public void setReservationdays(Integer reservationdays) {
		this.reservationdays = reservationdays;
	}
	/**
	 * 获取：预约天数
	 */
	public Integer getReservationdays() {
		return reservationdays;
	}
	/**
	 * 设置：总费用
	 */
	public void setTotalcost(Double totalcost) {
		this.totalcost = totalcost;
	}
	/**
	 * 获取：总费用
	 */
	public Double getTotalcost() {
		return totalcost;
	}
	/**
	 * 设置：预约时间
	 */
	public void setReservationtime(Date reservationtime) {
		this.reservationtime = reservationtime;
	}
	/**
	 * 获取：预约时间
	 */
	public Date getReservationtime() {
		return reservationtime;
	}
	/**
	 * 设置：用户账号
	 */
	public void setUseraccount(String useraccount) {
		this.useraccount = useraccount;
	}
	/**
	 * 获取：用户账号
	 */
	public String getUseraccount() {
		return useraccount;
	}
	/**
	 * 设置：用户姓名
	 */
	public void setUsername(String username) {
		this.username = username;
	}
	/**
	 * 获取：用户姓名
	 */
	public String getUsername() {
		return username;
	}
	/**
	 * 设置：联系电话
	 */
	public void setContactphone(String contactphone) {
		this.contactphone = contactphone;
	}
	/**
	 * 获取：联系电话
	 */
	public String getContactphone() {
		return contactphone;
	}
	/**
	 * 设置：预约备注
	 */
	public void setReservationremarks(String reservationremarks) {
		this.reservationremarks = reservationremarks;
	}
	/**
	 * 获取：预约备注
	 */
	public String getReservationremarks() {
		return reservationremarks;
	}
	/**
	 * 设置：是否支付
	 */
	public void setIspay(String ispay) {
		this.ispay = ispay;
	}
	/**
	 * 获取：是否支付
	 */
	public String getIspay() {
		return ispay;
	}

}
